package com.lelefly.base.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * FarmlandSpray entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "farmland_spray", catalog = "lelefly")
public class FarmlandSpray implements java.io.Serializable {

	// Fields

	private Integer id;
	private String farmlandid;
	private String sprayDate;

	// Constructors

	/** default constructor */
	public FarmlandSpray() {
	}

	/** full constructor */
	public FarmlandSpray(String farmlandid, String sprayDate) {
		this.farmlandid = farmlandid;
		this.sprayDate = sprayDate;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "farmlandid", nullable = false, length = 40)
	public String getFarmlandid() {
		return this.farmlandid;
	}

	public void setFarmlandid(String farmlandid) {
		this.farmlandid = farmlandid;
	}

	@Column(name = "spray_date", nullable = false, length = 20)
	public String getSprayDate() {
		return this.sprayDate;
	}

	public void setSprayDate(String sprayDate) {
		this.sprayDate = sprayDate;
	}

}